package cn.edu.lcu.cs.javaprogramming.oop.animal;

/**
 * 鲸鱼类
 * 2022/3/11 16:32
 *
 * @Author by ling
 */

public class Whale extends Mammal implements Swimmable {
    public Whale() {
        setSpeciesName("鲸鱼");
    }

    @Override
    public void reproduce() {
        System.out.println("鲸鱼是胎生的");
    }

    @Override
    public void eat() {
        System.out.println("鲸鱼吃鱼");
    }

    public void swim() {
        System.out.println("鲸鱼游泳非常棒");
    }
}
